<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%--
  Created by IntelliJ IDEA.
  User: focus
  Date: 2018/1/9
  Time: 16:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<ul>
    <c:forEach var="c" items="${result}">
    <li>
        <a class="aw-user-name" href="people/${c.user.username}" data-id="${c.user.id}">
            <img src="http://wenda.wecenter.com/uploads/avatar/000/01/67/57_avatar_min.jpg" alt="${c.user.username}" />
        </a>
        <div>
            <p class="clearfix">
                <a href="people/${c.user.username}" class="aw-user-name author" data-id="${c.user.id}">${c.user.username} </a> •
                <span><fmt:formatDate value="${c.createTime}" pattern="yyyy-MM-dd HH:mm"/> </span>
            </p>
            <p class="clearfix">${c.content}</p>
        </div>
    </li>
    </c:forEach>
</ul>